﻿using System;
using System.Linq;
using System.Windows.Forms;

namespace CharTest
{
    public partial class CategoryView : Form
    {
        public CategoryView()
        {
            InitializeComponent();
        }

        private void OnCloseClick(object sender, EventArgs e)
        {
            Close();
        }

        public void SetData(char[] chars)
        {
            lstChars.Items.Clear();
            lstChars.Items.AddRange(
                chars.Select(c => c + "\t[" + (int)c + "]").Cast<object>().ToArray());
        }
    }
}